package com.xq.springboot.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xq
 * @version 1.0
 * @date 2021/4/18 16:25
 * @description 人们实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "People",description = "人们实体类")
public class People implements Serializable {

    @ApiModelProperty(value = "人们ID")
    private Integer id;

    @ApiModelProperty(value = "人们姓名")
    private String name;

    @ApiModelProperty(value = "人们地址")
    private String address;

    @ApiModelProperty(value = "人们年龄")
    private Integer age;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
